package cn.shutdown.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.shutdown.demo.dao.UserDao;

@Service
public class DemoUserService {
	@Autowired
	private UserDao userDao;

	public boolean hasMatchUser(String userName, String password) {
		return userDao.getMatchCount(userName, password)>0;
	}

	public void saveUser(String userName, String password) {
		userDao.saveUser(userName, password);
	}
}
